﻿@model PagedList<Entity.Admin.User>
@section viewAction{
    @Html.Partial("_Button_Create")
    @Html.Partial("_Button_Search")
}
<table class="default db">
    <thead>
        <tr>
            <th>
                用户名
            </th>
            <th>
                Email
            </th>
            <th>
                手机
            </th>
            <th>
                锁定
            </th>
            <th>
                创建时间
            </th>
            <th>
                上次登录时间
            </th>
            <th>
                上次修改密码时间
            </th>
            <th>
                上次锁定时间
            </th>
            <th>
                备注
            </th>
            <th>
                角色
            </th>
            <th>
                编辑
            </th>
        </tr>
    </thead>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.UserName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.MobilePIN)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.IslockedOut)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CreateDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LastLoginDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LastPasswordChangedDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.LastLockoutDate)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Comment)
            </td>
            <td>
                @Html.Label(string.Join(",", item.Roles.Select(p => p.RoleName)))
            </td>
            <td>
                @Html.Partial("_Ajax_Link_Edit", item)
                @Html.Partial("_Ajax_Link_Details", item)
                @Html.Partial("_Ajax_Link_Delete", item)
            </td>
        </tr>
    }
    <tfoot>
        <tr>
            <td colspan="11">@Ajax.MikePager(Model)
            </td>
        </tr>
    </tfoot>
</table>
